<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div class="wrap">
        <!-- 双向绑定,可以查看选中的元素 -->
        
        <!-- <input type="checkbox" value="zs" v-model="checkedNames">张三
        <input type="checkbox" value="ls" v-model="checkedNames">李四
        <input type="checkbox" value="ww" v-model="checkedNames">王五
        <p> checkone 的值{{checkedNames}} </p> -->

        <!-- <input type="radio" value="0" v-model="sex">女
        <input type="radio" value="1" v-model="sex">男
        <p>radio 的值是{{sex}}</p> -->

        <select name="" id="" v-model="selectName">
            <option value="zs">张三</option>
            <option value="ls">李四</option>
            <option value="ww">王五</option>
        </select>
        <p>selectName 的值是 {{selectName}}</p>




    </div>
</body>
<script>


    new Vue({
        el: '.wrap',
        data: {
            checkedNames: [],//选中的值显示到[]中
            sex: '0',  //默认是女
            selectName: 'ls',//默认是李四
        }
    })


</script>

</html>